/* 
 * ProgressBar.java
 *
 * Create on Apr 1, 2014 4:40:02 AM
 *
 * Copyright (c) 2014 Zhiyong's Design Studio.
 *
 * This software contains confidential proprietary information belonging
 * to Zhiyong's Design Studio. No part of this information may be used, reproduced, 
 * or stored without prior written consent of Zhiyong's Design Studio.
 *
 */

package com.zhiyongstudio.contactorbook;

import javax.swing.ImageIcon;

/**
 *
 * @author Zhiyong's Design Studio
 */
public class ProgressBar extends javax.swing.JFrame {

    private SIPNodesManagementFrame mainFrame;

    /**
     * Creates new form ProgressBar
     */
    public ProgressBar() {
        this.setLocationRelativeTo(null);
        initComponents();
         this.setIconImage(new ImageIcon(getClass().getResource("/com/zhiyongstudio/contactorbook/icons/save.png")).getImage());
    }
    
    public void setText(String text){
        jLabel1.setText(text);
    }
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jProgressBar1 = new javax.swing.JProgressBar();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jProgressBar1.setIndeterminate(true);

        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("com/zhiyongstudio/contactorbook/Bundle"); // NOI18N
        jLabel1.setText(bundle.getString("ProgressBar.jLabel1.text")); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addContainerGap(252, Short.MAX_VALUE))
            .addComponent(jProgressBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JProgressBar jProgressBar1;
    // End of variables declaration//GEN-END:variables
}
